import request from '@/utils/request'

export function login(name, password) {
  return request({
    url: '/admin/login',
    method: 'post',
    data: {
      name,
      password
    }
  })
}
export function logout(username, password) {
  return request({
    url: '/admin/login',
    method: 'post',
    data: { }
  })
}
export function getMyClassRoomInfo(username, password) {
  return request({
    url: '/admin/getMyClassRoomInfo',
    method: 'post',
    data: { }

  })
}

export function getMyInfo(username, password) {
  return request({
    url: '/admin/getMyInfo',
    method: 'post',
    data: { }

  })
}
export function changepass() {
 return request({
    url: '/admin/changepass',
    method: 'post',
    data: { }

  })
}
